package com.benjamin.sinamicroblogclient;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class StatusViewWrapper {
	
	private View baseView;
	private ImageView imageViewProfile;
	private TextView tvScreenName;
	private TextView tvCreatedAt;
	private TextView tvText;
	private TextView tvTextRetweeted;
	
	public StatusViewWrapper(View view){
		this.baseView = view;
	}
	
	public ImageView getImageViewProfile(){
		if (imageViewProfile == null){
			imageViewProfile = (ImageView) baseView.findViewById(R.id.imageViewProfile);	
		}
		
		return imageViewProfile;
	}
	
	public TextView getTextViewScreenName(){
		if (tvScreenName == null){
			tvScreenName = (TextView) baseView.findViewById(R.id.tvScreenName);
		}
		
		return tvScreenName;
	}
	
	public TextView getTextViewCreatedAt(){
		if (tvCreatedAt == null){
			tvCreatedAt = (TextView) baseView.findViewById(R.id.tvCreatedAt);
		}
		
		return tvCreatedAt;
	}
	
	public TextView getTextViewText(){
		if (tvText == null){
			tvText = (TextView) baseView.findViewById(R.id.tvText);
		}
		
		return tvText;
	}
	
	public TextView getTextViewTextRetweeted(){
		if (tvTextRetweeted == null){
			tvTextRetweeted = (TextView) baseView.findViewById(R.id.tvTextRetweeted);
		}
		
		return tvTextRetweeted;
	}
}
